package com.glory.wxelectricitypda.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.wxelectricitypda.R;
import com.glory.wxelectricitypda.bean.EqpEntoty;

import java.util.List;


public class LotInfoAdapter extends BaseQuickAdapter<EqpEntoty.MaterierlBean, BaseViewHolder> {
    public LotInfoAdapter(@Nullable List<EqpEntoty.MaterierlBean> data) {
        super(R.layout.adapter_lot_info, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, EqpEntoty.MaterierlBean item) {
        helper.setText(R.id.tvPosition,String.valueOf(helper.getAdapterPosition() + 1));
        helper.setText(R.id.tvLotId,item.getmLotId());
        helper.setText(R.id.tvMainQty,item.getMainQty());
        helper.setText(R.id.tvPieceNumber,item.getAttribute1());
        helper.addOnClickListener(R.id.btSubmin);
    }
}
